package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Getter@Setter@ToString@AllArgsConstructor@NoArgsConstructor
public class ChatRoom extends BaseDomain{
    /**
     * 发送人
     */
    private User send;
    /**
     * 发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;
    /**
     * 发送内容
     */
    private String content;
    /**
     * 状态0未读
     */
    private Integer sendState;
    /**
     * 聊天室id
     */
    private Long room;
    /**
     * 聊天室名字
     */
    private String roomName;


//    private List<User> users;


}